package cn.itsuorce.mapper;

import cn.itsuorce.domain.Department;
import cn.itsuorce.domain.Employee;
import cn.itsuorce.domain.Systemdictionarydetail;
import cn.itsuorce.domain.User;
import cn.itsuorce.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee,EmployeeQuery>{

    /**
     * 查询部门经理
     * @param job_id
     * @return
     */
    List<Employee> findByJob_id(Long job_id);


    void batchRemove(List<Long> ids);

    /**
     * 查询职位
     * @param job_id
     * @return
     */
    List<Systemdictionarydetail> managerjobs(Long job_id);

    void updateStateById(@Param("admin_id") Long admin_id, @Param("auditState") Integer auditState);

    /**
     * 邮件激活
     * @param employee_id
     */
    void activation(Long employee_id);

    /**
     * 验证登录
     * @param username
     * @return
     */
    Employee login(String username);

    /**
     * 通过手机号查询Employee
     * @param phone
     * @return
     */
    Employee findByPhone(String phone);
}
